import c4d
import os
import sys
import re

from c4d import gui, plugins, bitmaps, utils, documents

PLUGIN_ID = 1037229
EXPORT_LIST = 1001
SELECTION_UUID = 1002

class Entry(plugins.TagData):

    def Init(self, node):
    
        node[SELECTION_UUID] = ""
        
        return True

    def Message(self, node, type, data):
        
        return True
        
    def Execute(self, tag, doc, op, bt, priority, flags):

        return c4d.EXECUTIONRESULT_OK
        
if __name__ == "__main__":
    bmp = bitmaps.BaseBitmap()
    dir, file = os.path.split(__file__)
    fn = os.path.join(dir, "res", "tag.png")
    bmp.InitWith(fn)
    
    plugins.RegisterTagPlugin(id=PLUGIN_ID, str="Unity Export Selection Hub Tag",
                              info=c4d.TAG_VISIBLE, g=Entry,
                              description="u_e_s_h_tag", icon=bmp)